#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    char arr[6] = { 0 };
    scanf("%[^\n]s", arr);
    int count = 0;
    char* left = arr;
    while (*left != '\0')
    {

        if (*left == ' ')
        {
            left++;
        }
        else
        {
            count++;
            left++;
        }
    }
    printf("%d", count);
    return 0;
}

#include <stdio.h>
#include<string.h>

int main() {
    char arr1[10] = { 0 };
    char arr2[10] = { 0 };
    while (scanf("%s %s", arr1, arr2) != EOF)
    {
        if (strcmp(arr1, "admin") == 0)
        {
            if (strcmp(arr2, "admin") == 0)
            {
                printf("Login Success!\n");
            }
            else
            {
                printf("Login Fail!\n");
            }
        }
        else
        {
            printf("Login Fail!\n");
        }
    }
    return 0;
}